module rip_cnt10(
input clk,
input rst,
output[3:0]q
);
jk_trigger FF1(.clk(clk),.rst(rst),.j(1),.k(1),.q(q[0]));
jk_trigger FF2(.clk(clk),.rst(rst),.j(q[0]&(~q[3])),.k(q[0]),.q(q[1]));
jk_trigger FF3(.clk(clk),.rst(rst),.j(q[0]&q[1]),.k(q[0]&q[1]),.q(q[2]));
jk_trigger FF4(.clk(clk),.rst(rst),.j(q[1]&q[2]&q[0]),.k(q[0]),.q(q[3]));

/*jk_trigger FF1(.clk(clk),.rst(rst),.j(1),.k(1),.q(q[0]));
jk_trigger FF2(.clk(q[0]),.rst(rst),.j(1),.k(1),.q(q[1]));
jk_trigger FF3(.clk(q[1]),.rst(rst),.j(1),.k(1),.q(q[2]));
jk_trigger FF4(.clk(q[2]),.rst(rst),.j(1),.k(1),.q(q[3]));*/
endmodule
